package com.label.Model.Do.LearningAnalysis;

import java.io.Serializable;

/**
 * 画像-学生成绩模块-班级信息
 * @TableName CLASS_INFO
 */
public class ClassInfo implements Serializable {
    /**
     * ID
     */
    private Long id;

    /**
     * 班级
     */
    private String className;

    /**
     * 年级
     */
    private String grade;

    /**
     * 学院
     */
    private String college;

    /**
     * 专业
     */
    private String major;

    /**
     * 导员姓名
     */
    private String instructorName;

    /**
     * 导员工号
     */
    private String instructorNumber;

    /**
     * 学生类型
     */
    private String stuType;

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    public Long getId() {
        return id;
    }

    /**
     * ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 班级
     */
    public String getClassName() {
        return className;
    }

    /**
     * 班级
     */
    public void setClassName(String className) {
        this.className = className;
    }

    /**
     * 年级
     */
    public String getGrade() {
        return grade;
    }

    /**
     * 年级
     */
    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * 学院
     */
    public String getCollege() {
        return college;
    }

    /**
     * 学院
     */
    public void setCollege(String college) {
        this.college = college;
    }

    /**
     * 专业
     */
    public String getMajor() {
        return major;
    }

    /**
     * 专业
     */
    public void setMajor(String major) {
        this.major = major;
    }

    /**
     * 导员姓名
     */
    public String getInstructorName() {
        return instructorName;
    }

    /**
     * 导员姓名
     */
    public void setInstructorName(String instructorName) {
        this.instructorName = instructorName;
    }

    /**
     * 导员工号
     */
    public String getInstructorNumber() {
        return instructorNumber;
    }

    /**
     * 导员工号
     */
    public void setInstructorNumber(String instructorNumber) {
        this.instructorNumber = instructorNumber;
    }

    /**
     * 学生类型
     */
    public String getStuType() {
        return stuType;
    }

    /**
     * 学生类型
     */
    public void setStuType(String stuType) {
        this.stuType = stuType;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClassInfo other = (ClassInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getClassName() == null ? other.getClassName() == null : this.getClassName().equals(other.getClassName()))
            && (this.getGrade() == null ? other.getGrade() == null : this.getGrade().equals(other.getGrade()))
            && (this.getCollege() == null ? other.getCollege() == null : this.getCollege().equals(other.getCollege()))
            && (this.getMajor() == null ? other.getMajor() == null : this.getMajor().equals(other.getMajor()))
            && (this.getInstructorName() == null ? other.getInstructorName() == null : this.getInstructorName().equals(other.getInstructorName()))
            && (this.getInstructorNumber() == null ? other.getInstructorNumber() == null : this.getInstructorNumber().equals(other.getInstructorNumber()))
            && (this.getStuType() == null ? other.getStuType() == null : this.getStuType().equals(other.getStuType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getClassName() == null) ? 0 : getClassName().hashCode());
        result = prime * result + ((getGrade() == null) ? 0 : getGrade().hashCode());
        result = prime * result + ((getCollege() == null) ? 0 : getCollege().hashCode());
        result = prime * result + ((getMajor() == null) ? 0 : getMajor().hashCode());
        result = prime * result + ((getInstructorName() == null) ? 0 : getInstructorName().hashCode());
        result = prime * result + ((getInstructorNumber() == null) ? 0 : getInstructorNumber().hashCode());
        result = prime * result + ((getStuType() == null) ? 0 : getStuType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", className=").append(className);
        sb.append(", grade=").append(grade);
        sb.append(", college=").append(college);
        sb.append(", major=").append(major);
        sb.append(", instructorName=").append(instructorName);
        sb.append(", instructorNumber=").append(instructorNumber);
        sb.append(", stuType=").append(stuType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
